/*这是铺位组件  */

<template>
  <div class="PlaceMessage">
    <el-card>
      <el-collapse v-model="activeNames" @change="handleChange">
        <el-collapse-item>
          <template slot="title">
            <el-row style="width: 100%" type="flex" justify="space-between">
              <span> 基础信息 </span>
              <span> 展开 </span>
            </el-row>
          </template>
          <div>
            <slot name="place" />
          </div>
        </el-collapse-item>
      </el-collapse>
      <!-- </el-row> -->
    </el-card>
  </div>
</template>

<script>
import commerceEnum from '@/constan/commerce'

export default {
  props: {
    enumName: {
      type: String,
      required: true
    }
  },
  data() {
    return {
      activeNames: '', commerceEnum,
      formData: {}
    }
  },
  async created() {
    this.$emit('getDEtail')
  },
  methods: {
    handleChange() {}
  }

}
</script>

<style lang='scss'>
.PlaceMessage {
  .el-collapse-item__header {
    border: none;
  }
  .el-collapse {
    border: none;

    .el-card {
      background: #fdfcf9;
      border: 1px solid #f7f2f1;
    }
  }
  .el-collapse-item__wrap {
    border: none;
  }
}
</style>

<style lang="scss" scoped>
.PlaceMessage {
  width: 95%;
  margin: 20px auto;

  .el-card {
    border-radius: 10px;

    .el-form-item {
      margin: 0 20px;
    }
    .el-row.is-justify-space-around.is-align-middle.el-row--flex {
      //  height: 100%;
      margin-top: 40px;
    }
  }
}
</style>
